package com.bw.user.mvvm.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bw.shopping.entity.ListOrder;
import com.bw.user.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/11/1 0001 下午 6:41
 *
 */
class OrderCanlAdapter extends BaseQuickAdapter<ListOrder, BaseViewHolder> {
    public OrderCanlAdapter( ) {
        super(R.layout.item_ordercanl_item);
        addChildClickViewIds(R.id.mPayBtn);
//        ,R.id.mCancelBtn
    }


    @Override
    protected void convert(BaseViewHolder baseViewHolder, ListOrder listOrder) {
        Glide.with(getContext()).load(listOrder.getGoods_icon()).into((ImageView) baseViewHolder.getView(R.id.mGoodsIconIv111));
        baseViewHolder.setText(R.id.mGoodsDescTv111,listOrder.getGoods_desc());
        baseViewHolder.setText(R.id.mGoodsPriceTv111, listOrder.getGoods_price());
        baseViewHolder.setText(R.id.mGoodsCountTv111, listOrder.getGoods_count()+"");
    }
}
